<?php
/**
* @version		$Id: default.php 2010-07-07 vinaora $
* @package		VINAORA MP3 PLAYER
* @copyright	Copyright (C) 2010 VINAORA. All rights reserved.
* @license		GNU/GPL
* @website		http://vinaora.com
* @email		admin@vinaora.com
* 
*/

// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );

?>

<!-- BEGIN: VINAORA MP3 PLAYER -->
<!-- Website http://vinaora.com -->
<script type="text/javascript" defer="defer">
	
	////////////////////////////////////////////////////////////////////////////
	var flashvars = {};
	flashvars.skin 			= '<?php echo $skin; ?>';
	flashvars.playlist 		= '<?php echo $config; ?>';
	flashvars.autoplay 		= '<?php echo $params->get('autoplay'); ?>';
	flashvars.repeat		= '<?php echo $params->get('repeat'); ?>';
	flashvars.shuffle 		= '<?php echo $params->get('shuffle'); ?>';
	flashvars.volume 		= '<?php echo $params->get('volume'); ?>';
	
	flashvars.debug			= '<?php echo $params->get('debug'); ?>';
	flashvars.key 			= '<?php echo $params->get('key'); ?>';
	
	flashvars.mousewheelfix	= '<?php echo $params->get('mousewheelfix'); ?>';
	flashvars.maxmemory		= '<?php echo $params->get('maxmemory'); ?>';
	
	////////////////////////////////////////////////////////////////////////////
	var params = {};
	params.allowScriptAccess = 'always';
	
	////////////////////////////////////////////////////////////////////////////
	var attributes = {};
	attributes.id = '<?php echo $player; ?>';
	
	////////////////////////////////////////////////////////////////////////////
	swfobject.embedSWF(
		'<?php echo $mp3player; ?>', 
		'<?php echo $container; ?>', 
		'<?php echo $width; ?>', 
		'<?php echo $height; ?>', 
		'<?php echo $flash_version; ?>', 
		'<?php echo $expressInstall; ?>', 
		flashvars, 
		params, 
		attributes
	);
	
</script>

<!-- this div will be overwritten by SWF object -->
<div id="<?php echo $container; ?>" class="vmp3player<?php echo $params->get('moduleclass_sfx'); ?>">
	<p>In order to view <a href="http://vinaora.com/" target="_blank" title="Joomla MP3 Player">Joomla MP3 Player</a> you need Flash Player 10+ support! </p>
	<a href="http://www.adobe.com/go/getflashplayer">
		<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player"/>
	</a>
</div>
<!-- Website http://vinaora.com -->
<!-- END: VINAORA MP3 PLAYER -->
